﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BSS.OAuth2.Fake
{
    public class AuthenticationProvider: IOAuthProvider
    {
        #region IOAuthProvider Members

        public string GetAuthorizationCodeRequestUrl(string redirectUrl, string scopeCollection)
        {
            return string.Format("{0}?code={1}", redirectUrl, Guid.NewGuid().ToString());
        }

        public string GetAccessToken(string authorizationCode, string redirectUrl)
        {
            return Guid.NewGuid().ToString();
        }

        public IUser GetUser(string accessToken)
        {
            return new User() { id = 999999999, name = "Test User", email = "TestEmail@gmail.com" };
        }

        #endregion
    }
}
